

public class HelloWorldLoop2
{
	
	public static void main(String[] args)
	{
		int x = 0;
		boolean keepgoing = true;
		/*//Method 1
		while (keepgoing)
		{
			System.out.println(x);
			if (x >= 10)
			{
				
				keepgoing = false;
				
			}
			x++;
		}*/
		x=0;
		//Method 2
		while(x<=10)
		{
			System.out.println(x);
			x++;
		}
		
	}
	
}
